<!DOCTYPE html>
<html>
<head>
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>顺丰管理系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- Bootstrap Styles-->
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css"
	media="all" />
<link href="css/font-awesome.min.css" rel="stylesheet" type="text/css"
	media="all" />
<!-- Morris Chart Styles-->
<link href="js/morris/morris-0.4.3.min.css" rel="stylesheet" />
<!-- Custom Styles-->
<link href="css/custom-styles.css" rel="stylesheet" />
<link href="css/eject.css" rel="stylesheet">
</head>
<body>
	<div id="popLayer"></div>
	<div id="popBox">
	<div class="message" id="warningmessage"></div>
	<div class="close">
        <a href="javascript:void(0)"  onclick="closeBox()">关闭</a>
        </div>
	</div>
	<div id="wrapper">
		<nav class="navbar navbar-default top-navbar" role="navigation">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle" data-toggle="collapse"
					data-target=".sidebar-collapse">
					<span class="sr-only">Toggle navigation</span> <span
						class="icon-bar"></span> <span class="icon-bar"></span> <span
						class="icon-bar"></span>
				</button>
				<a class="navbar-brand" href="${pageContext.request.contextPath }/delivery/homepage"> <strong>顺丰物流运输管理部 </strong></a>
			</div>

			<ul class="nav navbar-top-links navbar-right">
				<li class="dropdown"><a class="dropdown-toggle"
					data-toggle="dropdown" href="#" aria-expanded="false"> <i
						class="fa fa-envelope fa-fw"></i> <i class="fa fa-caret-down"></i>
				</a>
					<ul class="dropdown-menu dropdown-messages">
						<li><a href="#">
								<div>
									<strong>万茜</strong> <span class="pull-right text-muted">
										<em>今天</em>
									</span>
								</div>
								<div>在吗？</div>
						</a></li>
						<li class="divider"></li>
						<li><a href="#">
								<div>
									<strong>胡歌</strong> <span class="pull-right text-muted">
										<em>昨天</em>
									</span>
								</div>
								<div>出来玩</div>
						</a></li>

						<li class="divider"></li>
						<li><a class="text-center" href="#"> <strong>查看全部</strong>
								<i class="fa fa-angle-right"></i>
						</a></li>
					</ul></li>
				<!-- /.dropdown -->
				<li class="dropdown"><a class="dropdown-toggle"
					data-toggle="dropdown" href="#" aria-expanded="false"> <i
						class="fa fa-tasks fa-fw"></i> <i class="fa fa-caret-down"></i>
				</a>
					<ul class="dropdown-menu dropdown-tasks">
						<li><a href="#">
								<div>
									<p>
										<strong>任务 1</strong> <span class="pull-right text-muted">60%
											完成</span>
									</p>
									<div class="progress progress-striped active">
										<div class="progress-bar progress-bar-success"
											role="progressbar" aria-valuenow="60" aria-valuemin="0"
											aria-valuemax="100" style="width: 60%">
											<span class="sr-only">60% Complete (success)</span>
										</div>
									</div>
								</div>
						</a></li>
						<li class="divider"></li>
						<li><a href="#">
								<div>
									<p>
										<strong>任务 2</strong> <span class="pull-right text-muted">28%
											完成</span>
									</p>
									<div class="progress progress-striped active">
										<div class="progress-bar progress-bar-info" role="progressbar"
											aria-valuenow="28" aria-valuemin="0" aria-valuemax="100"
											style="width: 28%">
											<span class="sr-only">28% Complete</span>
										</div>
									</div>
								</div>
						</a></li>
						<li class="divider"></li>
						<li><a href="#">
								<div>
									<p>
										<strong>任务 3</strong> <span class="pull-right text-muted">60%
											完成</span>
									</p>
									<div class="progress progress-striped active">
										<div class="progress-bar progress-bar-warning"
											role="progressbar" aria-valuenow="60" aria-valuemin="0"
											aria-valuemax="100" style="width: 60%">
											<span class="sr-only">60% Complete (warning)</span>
										</div>
									</div>
								</div>
						</a></li>
						<li class="divider"></li>
						<li><a href="#">
								<div>
									<p>
										<strong>任务 4</strong> <span class="pull-right text-muted">85%
											完成</span>
									</p>
									<div class="progress progress-striped active">
										<div class="progress-bar progress-bar-danger"
											role="progressbar" aria-valuenow="85" aria-valuemin="0"
											aria-valuemax="100" style="width: 85%">
											<span class="sr-only">85% Complete (danger)</span>
										</div>
									</div>
								</div>
						</a></li>
						<li class="divider"></li>
						<li><a class="text-center" href="#"> <strong>查看所有任务</strong>
								<i class="fa fa-angle-right"></i>
						</a></li>
					</ul> <!-- /.dropdown-tasks --></li>
				<!-- /.dropdown -->
				<li class="dropdown"><a class="dropdown-toggle"
					data-toggle="dropdown" href="#" aria-expanded="false"> <i
						class="fa fa-bell fa-fw"></i> <i class="fa fa-caret-down"></i>
				</a>
					<ul class="dropdown-menu dropdown-alerts">
						<li><a href="#">
								<div>
									<i class="fa fa-comment fa-fw"></i> 新通知 <span
										class="pull-right text-muted small">4 min</span>
								</div>
						</a></li>
						<li class="divider"></li>


						<li><a href="#">
								<div>
									<i class="fa fa-envelope fa-fw"></i> 新通知 <span
										class="pull-right text-muted small">4 min</span>
								</div>
						</a></li>


						<li class="divider"></li>
						<li><a class="text-center" href="#"> <strong>查看所有通知</strong>
								<i class="fa fa-angle-right"></i>
						</a></li>
					</ul> <!-- /.dropdown-alerts --></li>
				<!-- /.dropdown -->
				<li class="dropdown"><a class="dropdown-toggle"
					data-toggle="dropdown" href="#" aria-expanded="false"> <i
						class="fa fa-user fa-fw"></i> <i class="fa fa-caret-down"></i>
				</a>
					<ul class="dropdown-menu dropdown-user">
						<li><a href="#"><i class="fa fa-user fa-fw"></i> 个人中心(${staffname})</a></li>
						<li><a href="#"><i class="fa fa-gear fa-fw"></i> 设置</a></li>
						<li class="divider"></li>
						<li><a href="${pageContext.request.contextPath }/backstage/loginout"><i class="fa fa-sign-out fa-fw"></i> 退出</a></li>
					</ul> <!-- /.dropdown-user --></li>
				<!-- /.dropdown -->
			</ul>
		</nav>
		<!--/. NAV TOP  -->
		<nav class="navbar-default navbar-side" role="navigation">
			<div class="sidebar-collapse">
				<ul class="nav" id="main-menu">

					<li><a
						href="${pageContext.request.contextPath }/delivery/notice"><i
							class="fa fa-dashboard"></i> 公告</a></li>
					<li><a class="active-menu" href="#"><i class="fa fa-desktop"></i> 物流管理<span
							class="fa arrow"></span></a>
						<ul class="nav nav-second-level">
							<li><a href="${pageContext.request.contextPath }/index/logistics">订单信息</a></li>
							<li><a href="${pageContext.request.contextPath }/index/delivery">物流派送</a></li>
						</ul></li>
				</ul>

			</div>

		</nav>
		<!-- /. NAV SIDE  -->
		<div id="page-wrapper">
			<div id="page-inner">
				<div class="row">
					<div class="col-md-12">
						<h1 class="page-header">
							物流信息管理 <small>更新</small>
						</h1>
					</div>
				</div>
				<!-- /. ROW  -->


				<div class="row">

					<div class="col-md-12">
<!-- Advanced Tables -->
						<div class="panel panel-default">
							<div class="panel-heading">
								<% //提取超链接传递的参数保存在局部变量
								String membername=request.getParameter("membername");
								String id=request.getParameter("id");
								String sender=request.getParameter("sender");
								String scellphone=request.getParameter("scellphone");
								String slocal=request.getParameter("slocal");
								String sdetailedlocal=request.getParameter("sdetailedlocal");
								String receiver=request.getParameter("receiver");
								String rcellphone=request.getParameter("rcellphone");
								String rlocal=request.getParameter("rlocal");
								String rdetailedlocal=request.getParameter("rdetailedlocal");
								String gettime=request.getParameter("gettime");
								String sendtime=request.getParameter("sendtime");
								String type=request.getParameter("type");
								String weight=request.getParameter("weight");
								String count=request.getParameter("count");
								String remark=request.getParameter("remark");
								String pay=request.getParameter("pay");
								String sendmessage=request.getParameter("sendmessage");
								String state=request.getParameter("state");
																
								%>
								物流信息列表&ensp;&ensp;
								<button><a href="${pageContext.request.contextPath }/parcel/selectall">检索</a></button>
							</div>
							<div class="panel-body">
								<div class="table-responsive">
									<table class="table table-striped table-bordered table-hover"
										id="dataTables-example">
										<tbody>
											<form
												action="${pageContext.request.contextPath }/parcel/update?id=<%{out.print(id);} %>" onsubmit="return checkupdateparcel()"
												method="post">
												<tr>
													<th colspan="2" style="text-align: center;"><%{out.print(id);} %></th>
												</tr>
												<tr>
													<th>会员账号</th>
													<td><input type="text" class="form-control" id="membername" name="membername" value="<%{out.print(membername);}%>" required/></td>
												</tr>
												<tr>
													<th>寄件人姓名</th>
													<td><input type="text" class="form-control" name="sender" value="<% {out.print(sender);}%>" required/></td>
												</tr>
												<tr>
													<th>寄件人电话</th>
													<td><input type="text" class="form-control" name="scellphone" value="<% {out.print(scellphone);}%>" maxlength="11" onkeyup="this.value=this.value.replace(/\D/g,'')"required/></td>
												</tr>
												<tr>
													<th>寄件人地址</th>
													<td><select id="slocal" name="slocal" class="form-control" required>
		                                                <option value="北京市"> 北京市 </option>
		                                                <option value="上海市 "> 上海市 </option>
		                                                <option value="天津市"> 天津市 </option>
		                                                <option value="重庆市"> 重庆市 </option>
		                                                <option value="黑龙江省"> 黑龙江省 </option>
		                                                <option value="吉林省"> 吉林省 </option>
		                                                <option value="辽宁省"> 辽宁省 </option>
		                                                <option value="河北省"> 河北省 </option>
														<option value="新疆省"> 新疆省 </option>
														<option value="甘肃省"> 甘肃省 </option>
														<option value="青海省"> 青海省 </option>
														<option value="陕西省"> 陕西省 </option>
														<option value="宁夏回族自治区"> 宁夏回族自治区 </option>
														<option value="河南省"> 河南省 </option>
														<option value="山东省"> 山东省 </option>
														<option value="山西省"> 山西省 </option>
														<option value="安徽省"> 安徽省 </option>
														<option value="湖北省"> 湖北省 </option>
														<option value="江苏省"> 江苏省 </option>
														<option value="四川省"> 四川省 </option>
														<option value="贵州省"> 贵州省 </option>
														<option value="云南省"> 云南省 </option>
														<option value="广西壮族自治区"> 广西壮族自治区 </option>
														<option value="西藏自治区"> 西藏自治区 </option>
														<option value="浙江省"> 浙江省 </option>
														<option value="江西省"> 江西省 </option>
														<option value="广东省"> 广东省 </option>
														<option value="福建省"> 福建省 </option>
														<option value="台湾省"> 台湾省 </option>
														<option value="海南省"> 海南省 </option>
														<option value="香港特别行政区"> 香港特别行政区 </option>
														<option value="澳门特别行政区"> 澳门特别行政区 </option>
		                                            </select>
													</td>
												</tr>
												<tr>
													<th>寄件人详细地址</th>
													<td><input type="text" class="form-control" name="sdetailedlocal" value="<% {out.print(sdetailedlocal);}%>" required/></td>
												</tr>
												<tr>
													<th>收件人姓名</th>
													<td><input type="text" class="form-control" name="receiver" value="<% {out.print(receiver);}%>" required/></td>
												</tr>
												<tr>
													<th>收件人电话</th>
													<td><input type="text" class="form-control" name="rcellphone" value="<% {out.print(rcellphone);}%>" maxlength="11" onkeyup="this.value=this.value.replace(/\D/g,'')" required/></td>
												</tr>
												<tr>
													<th>收件人地址</th>
													<td><select id="rlocal" name="rlocal" class="form-control" required>
		                                                <option value="北京市"> 北京市 </option>
		                                                <option value="上海市 "> 上海市 </option>
		                                                <option value="天津市"> 天津市 </option>
		                                                <option value="重庆市"> 重庆市 </option>
		                                                <option value="黑龙江省"> 黑龙江省 </option>
		                                                <option value="吉林省"> 吉林省 </option>
		                                                <option value="辽宁省"> 辽宁省 </option>
		                                                <option value="河北省"> 河北省 </option>
														<option value="新疆省"> 新疆省 </option>
														<option value="甘肃省"> 甘肃省 </option>
														<option value="青海省"> 青海省 </option>
														<option value="陕西省"> 陕西省 </option>
														<option value="宁夏回族自治区"> 宁夏回族自治区 </option>
														<option value="河南省"> 河南省 </option>
														<option value="山东省"> 山东省 </option>
														<option value="山西省"> 山西省 </option>
														<option value="安徽省"> 安徽省 </option>
														<option value="湖北省"> 湖北省 </option>
														<option value="江苏省"> 江苏省 </option>
														<option value="四川省"> 四川省 </option>
														<option value="贵州省"> 贵州省 </option>
														<option value="云南省"> 云南省 </option>
														<option value="广西壮族自治区"> 广西壮族自治区 </option>
														<option value="西藏自治区"> 西藏自治区 </option>
														<option value="浙江省"> 浙江省 </option>
														<option value="江西省"> 江西省 </option>
														<option value="广东省"> 广东省 </option>
														<option value="福建省"> 福建省 </option>
														<option value="台湾省"> 台湾省 </option>
														<option value="海南省"> 海南省 </option>
														<option value="香港特别行政区"> 香港特别行政区 </option>
														<option value="澳门特别行政区"> 澳门特别行政区 </option>
		                                            </select></td>
												</tr>
												<tr>
													<th>收件人详细地址</th>
													<td><input type="text" class="form-control" name="rdetailedlocal" value="<% {out.print(rdetailedlocal);}%>" required/></td>
												</tr>
												<tr>
													<th>上门取件时间</th>
													<td><% {out.print(gettime);}%> </td>
												</tr>
												<tr>
													<th>用户下单时间</th>
													<td><% {out.print(sendtime);}%></td>
												</tr>
												<tr>
													<th>类型</th>
													<td><select name="type" id="type" class="form-control" required>
		                                                <option value="电子产品"> 电子产品 </option>
														<option value="食物生鲜"> 食物生鲜 </option>
														<option value="精密仪器"> 精密仪器 </option>
														<option value="大型工具"> 大型工具 </option>
														<option value="其他"> 其他 </option>
		                                            </select>
													</td>
												</tr>
												<tr>
													<th>重量(Kg)</th>
													<td><input type="text" class="form-control" name="weight" value="<% {out.print(weight);}%>" required/></td>
												</tr>
												<tr>
													<th>数量</th>
													<td><input type="text" class="form-control" name="count" value="<% {out.print(count);}%>"/></td>
												</tr>
												<tr>
													<th>备注</th>
													<td><textarea class="form-control" name="remark" rows="2"><% {out.print(remark);}%></textarea></td>
												</tr>
												<tr>
													<th>运费</th>
													<td><input type="text" class="form-control" name="pay" value="<% {out.print(pay);}%>" required/></td>
												</tr>
												<tr>
													<th>物流信息<br>(地址+中文分号＋系统时间)</th>
													<td><textarea class="form-control" name="sendmessage" rows="2" ><% {out.print(sendmessage);}%></textarea></td>
												</tr>
												<tr>
													<th>状态</th>
													<td><select name="state" id="state" class="form-control" required>
		                                                <option value="已派送"> 已派送 </option>
														<option value="未派送"> 未派送 </option>
		                                            </select>
													</td>
												</tr>
												<tr>
												<td colspan="2" style="text-align: center;"><input type="submit" class='btn btn-finish btn-fill btn-success btn-wd' value="提交" /></td>
												</tr>
											</form>
										</tbody>
									</table>
								</div>

							</div>
						</div>
						<!--End Advanced Tables -->
					</div><!--  -->
				</div>
			</div>


			<footer>
				<p class="copyright">
					Copyright &copy; 2020 顺丰速运 版权所有 <a target="_blank"
						href="http://www.sf-express.com/cn/sc/index.html">www.sf-express.com</a>
				</p>
			</footer>
		</div>
		<!-- /. PAGE INNER  -->
	</div>
	<!-- /. PAGE WRAPPER  -->
	<!-- /. WRAPPER  -->
	<!-- JS Scripts-->
	<!-- JS Scripts-->
	<!-- jQuery Js -->
	<script src="js/jquery-1.10.2.js"></script>
	<!-- Bootstrap Js -->
	<script src="js/bootstrap.min.js"></script>

	<!-- Metis Menu Js -->
	<script src="js/jquery.metisMenu.js"></script>
	<!-- Morris Chart Js -->
	<script src="js/morris/raphael-2.1.0.min.js"></script>
	<script src="js/morris/morris.js"></script>


	<script src="js/easypiechart.js"></script>
	<script src="js/easypiechart-data.js"></script>


	<!-- Custom Js -->
	<script src="js/custom-scripts.js"></script>
	<script src="js/constraint.js"></script>
	<script type="text/javascript">
	 $("#slocal").val(<% {out.print(slocal);}%>);
	 $("#rlocal").val(<% {out.print(rlocal);}%>);
	 $("#type").val(<% {out.print(type);}%>);
	 $("#state").val(<% {out.print(state);}%>);
	</script>
	
</body>
</html>